package org.dromara.legal.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.legal.domain.Revert;
import org.dromara.system.domain.vo.SysOssVo;
import org.dromara.system.domain.vo.SysUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 回复视图对象 le_revert
 *
 * @author zhuqingrun
 * @date 2024-10-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Revert.class)
public class RevertVo extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 回复id
     */
    @ExcelProperty(value = "回复id")
    private Long id;

    /**
     * 咨询id
     */
    @ExcelProperty(value = "咨询id")
    private Long consultId;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String reContent;

    /**
     * 状态（0未审核， 1已审核，2审核不通过）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未审核，,1=已审核，2审核不通过")
    private String status;

    /**
     * 审核不通过原因
     */
    private String reason;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    private String reImg;

    /**
     * 相关文件
     */
    @ExcelProperty(value = "相关文件")
    private String file;

    private SysUserVo sysUser;

    private ConsultVo consultVo;

    private SysUserVo sysUserVo;

    private List<SysOssVo> fileList;
}
